@import "../utils/color";

.rank-scroll-h {
  width: 100%;
  height: 100%;

  .scroll-list {
    height: 100%;
    margin: 0 50px;
  }
}

.rank-tab {
  position: relative;
  float: left;
  width: 300px;
  height: 500px;
  margin-right: 20px;
  border: 5px solid transparent;

  &.fe-focus {
    //transform: scale(1.05);
    border: 5px solid $primary;
  }

  &-photo {
    position: absolute;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    height: 100%;
    border-radius: 5px;

    &-img {
      position: absolute;
      width: 100%;
      height: 100%;
    }
  }

  &-inner {
    position: absolute;
    width: 100%;
    height: 100%;

    .rank-tab-title {
      position: absolute;
      width: 100%;

      &.fe-focus {
        .rank-tab-title-icon-white {
          display: none;
        }

        .rank-tab-title-icon-green {
          display: block;
        }

        .rank-tab-title-text {
          color: $primary;
        }
      }

      &-icon {
        position: absolute;
        top: 70px;
        left: 50%;
        width: 130px;
        height: 130px;
        transform: translateX(-50%);
        text-align: center;

        &-white {
          display: block;
        }

        &-green {
          display: none;
        }
      }

      &-text {
        font-size: 36px;
        font-weight: bold;
        position: absolute;
        top: 220px;
        width: 100%;
        text-align: center;
      }
    }

    .rank-tab-list {
      position: absolute;
      top: 290px;
      width: 100%;
      height: 200px;
    }

    .rank-tab-item {
      width: 100%;
      height: 40px;
      padding: 0 20px;

      & + .rank-tab-item {
        margin-top: 8px;
      }

      &-wrapper {
        position: relative;

        &.fe-focus {
          .rank-tab-item-wrapper-mask {
            display: block;
          }
        }

        &-mask {
          position: absolute;
          top: 0;
          left: 0;
          display: none;
          width: 100%;
          height: 40px;
        }

        .marquee-truncate {
          font-size: 28px;
          line-height: 40px;
          position: absolute;
          z-index: 1;
          top: 0;
          width: 100%;
          height: 40px;
          padding: 0 32px;
          text-align: left;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }
    }
  }
}
